const CryptoJS = require('crypto-js')

/**
 * SHA1
 * @param {*} content
 * @return {string}
 */
const sha1 = (content) => CryptoJS.SHA1(content)
/**
 * MD5
 * @param {any} content
 * @return {string}
 */
const md5 = (content) => CryptoJS.MD5(content).toString()

module.exports = {
  sha1,
  md5
}
